package com.gxa.p2p.mapper;


import com.gxa.p2p.pojo.AccountInfo;
import com.gxa.p2p.pojo.AssetDetails;

import java.math.BigDecimal;

public interface AssetDetailsMapper {


    int deleteByPrimaryKey(Integer id);

    int insert(AssetDetails record);

    int insertSelective(AssetDetails record);

    AssetDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AssetDetails record);

    int updateByPrimaryKey(AssetDetails record);
    AssetDetails getAssetDetails (Integer userId);
    AssetDetails selectByUserId(Integer userId);
    AccountInfo getAccountInfo (Integer userId);
    BigDecimal getIncome (Integer userId);
    BigDecimal getExpense (Integer userId);
}